#ifndef GLEMFWIDGET_H
#define GLEMFWIDGET_H

#include "gl/glwidget.h"
#include "drawables/emfselector.h"
#include "drawables/emfdrawable.h"
#include <QSharedPointer>
#include <QMap>
#include <QPointF>

class GlEmfWidget : public GLWidget
{
    Q_OBJECT
public:
    GlEmfWidget();

signals:
    void sendEmfInfo(QSharedPointer<QMap <int, QPointF> > infoMap);


private:
    EmfSelector _selector;
    bool _isSelectorVisible;
    QVector<QPointF> _emfPoints;

private:
    void _sendEmfInfoAndFillIntersectionPoints();
    void mouseReleaseEvent(QMouseEvent *event);
    void paintGL();
    void _applyScaleAndTranslate();

};

#endif // GLEMFWIDGET_H
